import request from '@/router/axios';
import qs from 'qs';

// 数据列表-领用申请
export const getListOfSearch = (data) => request({
    url: '/dangerousGoods/v1/init',
    method: 'post',
    data: qs.stringify(data),
})
// 数据列表-领用申请
export const getListOfSearchSelect = (data) => request({
    url: '/dangerousGoods/v1/selectSomeByConditions',
    method: 'post',
    data: qs.stringify(data),
})
// 添加-领用申请
export const addDangerousGoods = (data) => request({
    url: '/dangerousGoods/v1/insert',
    method: 'post',
    data: qs.stringify(data),
})
// 修改-领用申请
export const updDangerousGoods = (data) => request({
    url: '/dangerousGoods/v1/update',
    method: 'post',
    data: qs.stringify(data),
})
// 删除-领用申请
export const delDangerousGoods = (data) => request({
    url: '/dangerousGoods/v1/getById?id='+data,
    method: 'post',
})